﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

namespace DevelopTools.UI
{
    
    public class UIActionSpeedControl : UIAction
    {
        public UIAnimation[] UIRotEffects;
        // Use this for initialization
        void Start()
        {
            UIRotEffects = GetComponentsInChildren<UIAnimation>();
        }

        public override void OnPointerEnter(PointerEventData eventData)
        {
            for (int i = 0; i < UIRotEffects.Length; ++i)
            {
                UIRotEffects[i].SetFast();
            }
        }
        public override void OnPointerExit(PointerEventData eventData)
        {
            for (int i = 0; i < UIRotEffects.Length; ++i)
            {
                UIRotEffects[i].SetNomal();
            }
        }
    }
}
